<?php
$res=M('config')->select();
$siteConf=[];
foreach($res as $v){
    $siteConf[$v['cname']]=$v['cvalue'];
}
return $siteConf;